<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>ACL Demo</title>
</head>

<body>
<h1>ACL Demo</h1>
<?php if($v['message']): ?>
	<div><?php echo $v['message'];?></div>
<?php endif; ?>

<div><p>目前身分：<?php echo $v['user'];?></p>
<?php if($v['user'] !== 'anonymous'): ?>
	<a href="<?php echo url('acl_main/signout');?>">[登出]</a>
<?php else:?>
	<form action="<?php echo url('acl_main/signin');?>" method="post">
		<p>帳號：<input name="account" type="text" /></p>
		<p>密碼：<input name="password" type="password" /></p>
		<p><input name="送出" type="submit" value="登入" /></p>
	</form>
	<p>可登入帳號，密碼皆為1234：</p>
	<ul>
		<li>member</li>
		<li>vip</li>
	</ul>
<?php endif; ?>
</div>
<div>
<h2>URLs:</h2>
<?php echo AppProject::displayUriList();?>
</div>



</body>
</html>
